<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>

<head>
<meta name="decorator" content="moduleEdit" />
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/bootstrap-datetimepicker.min.js"
	type="text/javascript"></script>
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/locales/bootstrap-datetimepicker.zh-CN.js"
	type="text/javascript"></script>
<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						/* $(".o-a-form-date").datetimepicker({
							language : 'zh-CN',
							autoclose : true,
							minView : 2,
							todayBtn : 1,
							pickerPosition : "bottom-left"
						});
 */
						$('[data-accounting]').each(function() {
											var $this = $(this);
											if ($this.attr("data-accounting-precision")
													&& "" != $this.attr("data-accounting-precision")) {
												$this.html(accounting.formatMoney(
														$this.attr("data-accounting"),"¥ ",$this.attr("data-accounting-precision") * 1));
											} else {
												$this.html(accounting.formatMoney(
																		$this.attr("data-accounting"),"¥ "));
											}
										});
					});
	
	function submitForm(flag){
		$("#flag").val(flag);
		bizStatementPospaySaleSupplierErrorForm.submit();
	}
</script>


</head>
<body>
	<div class="Report_f">
           <div class="Report_f_1">
                <div class="Report_f_title_1">录入专柜异常信息</div>
                  <!-- Tab panes -->
                  <div class="tab-content Report_f_title_3">
                    <div class="tab-pane active" id="label_1">
                         <div class="Report_f_title_4">
                              <form:form  name="listForm" id="bizStatementPospaySaleSupplierErrorForm" modelAttribute="bizStatementPospaySaleSupplierError" action="${contextPath}/biz/statement/pospaySaleSupplierError/approval" method="post" class="form-inline" role="form">	
                                   <form:hidden path="id"/>			           	  
					           	   <form:hidden path="shopNo"/>
					           	   <form:hidden path="barCode"/>
					           	   <form:hidden path="createByUserName"/>
					           	   <form:hidden path="createTime"/>
					               <form:hidden path="flag" id="flag"/>
								   <tags:message content="${message}"/>
                                   <div class="f_2">
                                       <div class="form-group col-sm-6">
                                            <label for="inputtext3" class="col-sm-3 control-label f_4">销售日期: </label>
                                            <div class="col-sm-9 f_6">
                                            	<div class="col-sm-7 f_14">
                                            		<div class="input-group date o-a-form-date" data-date="" data-date-format="yyyy-mm-dd">
	                                                    <input class="form-control f_13" id="saleDate" name="saleDate" value="<fmt:formatDate value="${bizStatementPospaySaleSupplierError.saleDate}" pattern="yyyy-MM-dd"/>" type="text" readonly="true"/>
							                            <span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
							                            <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
							                        </div>
                                            	</div>
                                            </div>
                                        </div>
                                   </div>
                                    <div class="f_2">
                                        <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_4">供应商编号：</label>
                                             <div class="col-sm-9 f_6">
                                            	 <div class="col-sm-7 f_14"><form:input id="supplierNo" path="supplierNo" maxlength="20" class="f_5" readonly="true"/></div>
                                             </div>
                                         </div>
                                         <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_7">供应商名称：</label>
                                             <div class="col-sm-9 f_6">
                                            	 <div class="col-sm-7 f_14"><form:input id="supplierName" path="supplierName" maxlength="80" class="f_5" readonly="true"/></div>
                                             </div>
                                         </div>
                                    </div>
                                    <div class="f_2">
                                        <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_4">有误金额：</label>
                                             <div class="col-sm-9 f_6">
                                            	 <div class="col-sm-7 f_14"><form:input id="errorAmount" path="errorAmount" class="f_5" readonly="true"/></div>
                                             </div>
                                         </div>
                                         <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_7">实际金额：</label>
                                             <div class="col-sm-9 f_6">
                                            	 <div class="col-sm-7 f_14"><form:input id="actualAmount" path="actualAmount" class="f_5" readonly="true"/></div>
                                             </div>
                                         </div>
                                    </div>
                                    <div class="f_2">
                                        <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_4">提出人：</label>
                                             <div class="col-sm-9 f_6">
                                            	 <div class="col-sm-7 f_14">${bizStatementPospaySaleSupplierError.createByUserName}</div>
                                             </div>
                                         </div>
                                         <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_4">提出日期: </label>
                                            <div class="col-sm-9 f_6">
                                            	<div class="col-sm-7 f_14">
                                            		<div class="input-group date o-a-form-date" data-date="" data-date-format="yyyy-mm-dd">
	                                                    <input class="form-control f_13" id="createTime" name="createTime" value="<fmt:formatDate value="${bizStatementPospaySaleSupplierError.createTime}" pattern="yyyy-MM-dd"/>" type="text" readonly="true"/>
							                            <span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
							                            <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
							                        </div>
                                            	</div>
                                            </div>
                                         </div>
                                    </div>
                                     <div class="f_2">
                                        <div class="form-group col-xs-12">
                                             <label for="inputtext3" class="col-lb-1 control-label f_10">异常说明：</label>
                                             <div class="col-sm-10 col-lb-2 f_6">
                                             		<form:textarea path="remark" rows="3" cssClass="form-control f_11" readonly="true"/>
                                             </div>
                                         </div>
									</div>
									  <div class="f_2">
                                        <div class="form-group col-xs-12">
                                             <label for="inputtext3" class="col-lb-1 control-label f_10">审核意见：</label>
                                             <div class="col-sm-10 col-lb-2 f_6">
                                             		<form:textarea path="remark1" rows="3" cssClass="form-control f_11" />
                                             </div>
                                         </div>
									</div>
                                   <div class="f_12">
                                        <button type="button" class="btn btn-warning btn_5 btn_right" onclick="submitForm('0')">驳&nbsp;回</button>
                                        <button type="button" class="btn btn-success btn_5 btn_right" onclick="submitForm('1')">通&nbsp;过</button>
                                   </div>
                              </form:form>
                         </div>
                    </div>
				  </div>
				</div>	
		</div>
</body>
</html>